<!-- template inhertance -->
<extend name="layout/default"/>

<!-- styles -->
<block name="linkcss">
    <link rel="stylesheet" href="/Public/home/css/review/review.css">
    <!--layui第三方-->
    <link rel="stylesheet" href="/Public/layui-formSelects/dist/formSelects-v4.css">
</block>

<!-- scripts -->
<block name="linkjs">
    <script src="/Public/home/js/review/ruleCreate.js"></script>
</block>

<!-- page title -->
<block name="webtitle">
    <title>创建评审规则</title>
</block>

<!-- navagations -->
<block name="breadcrumb">
    <ol class="breadcrumb breadcrumb-edit">
        <li class="active">创建评审规则</li>
    </ol>
</block>

<!-- main body -->
<block name="content">
    <form class="layui-form" action="">
        <div class="layui-form-item">
            <label class="layui-form-label">评审规则名称</label>
            <div class="layui-input-block">
                <input type="text" class="layui-input" name="ruleName" lay-verify="required" placeholder="请输入该评审规则的名称">
            </div>
        </div>

        <div class="review">
            <div class="layui-form-item">
                <!--reviewRules[代表评审级别序号][代表评审级别名称name]-->
                <input type="text" class="layui-input input-label" value="1级评审" name="reviewRules[1][name]">
                <div class="layui-input-block">
                    <div class="review-content">
                        <div class="review-content-select">
                            <div class="review-content-item">
                                <!--reviewRules[代表评审级别序号][代表评审类型type]-->
                                <select class="reviewType" name="reviewRules[1][type]" lay-verify="required">
                                    <option value="">请选择评审类型</option>
                                    <option value="1">或签</option>
                                    <option value="2">会签</option>
                                </select>
                            </div>
                            <div class="review-content-item">
                                <!--reviewRules[代表评审级别序号][代表参与评审角色role]-->
                                <select class="reviewRole" name="reviewRules[1][role]" xm-select="reviewRole[1]" xm-select-search="" xm-select-search-type="title" lay-verify="required">
                                    <option value="">请选择评审角色</option>
                                </select>
                            </div>
                        </div>
                        <div>
                            <button type="button" class="layui-btn layui-btn-primary" data-action="add" title="增加评审级别">
                                <i class="icon-plus"></i>
                            </button>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">抄送角色</label>
            <div class="layui-input-block">
                <select name="ccRole" xm-select="ccRole" xm-select-search="" xm-select-search-type="title">
                    <option value="">请选择抄送角色</option>
                </select>
            </div>
        </div>

        <div class="layui-form-item">
            <div class="layui-input-block">
                <button type="button" class="layui-btn" lay-submit lay-filter="create">创建</button>
                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
        </div>
    </form>
</block>